<?php
/**
* This file holds a class for Application_Model_BusLineToBusStop.
* @package busmap
*/

/**
* This class holds Application_Model_BusLineToBusStop class, that manipulates with BusLineToBusStop objects.
* @package busmap
*/
class Application_Model_BusLineToBusStop
{
    protected $_id;
    protected $_busLineId;
    protected $_busStopId;
	protected $_busLineAfterId;
	protected $_tableOrder;

	/**
	* Constructor with optional options array.
	*/
    public function __construct(array $options = null)
    {
        if (is_array($options)) {
            $this->setOptions($options);
        }
    }
 
	/**
	* Universal setter function that gets a name and a value for the BusLineToBusStop object property.
	*/
    public function __set($name, $value){
        $method = 'set' . $name;
        if (('mapper' == $name) || !method_exists($this, $method)) {
            throw new Exception('Invalid BusLineToBusStop property');
        }
        $this->$method($value);
    }
	/**
	* Universal getter function that gets the value of a BusLineToBusStop property with the given name.
	*/
    public function __get($name){
	       $method = 'get' . $name;
        if (('mapper' == $name) || !method_exists($this, $method)) {
            throw new Exception('Invalid BusLineToBusStop property');
        }
        return $this->$method();
	}
 
 	/**
	* Setter function for the busLineId property.
	*/
    public function setBusLineId($busLineId){
		$this->_busLineId = $busLineId;
		return $this;
	}
	/**
	* Getter function for the busLineId property.
	*/
    public function getBusLineId(){
		return $this->_busLineId;
	} 

 	/**
	* Setter function for the busLineAfterId property.
	*/
    public function setBusLineAfterId($busLineAfterId){
		$this->_busLineAfterId = $busLineAfterId;
		return $this;
	}
	/**
	* Getter function for the busLineAfterId property.
	*/
    public function getBusLineAfterId(){
		return $this->_busLineAfterId;
	}

 	/**
	* Setter function for the busStopId property.
	*/
    public function setBusStopId($busStopId){
		$this->_busStopId = $busStopId;
		return $this;
	}
	/**
	* Getter function for the busStopId property.
	*/
    public function getBusStopId(){
		return $this->_busStopId;
	}

 	/**
	* Setter function for the tableOrder property.
	*/
    public function setTableOrder($tableOrder){
		$this->_tableOrder = $tableOrder;
		return $this;
	}
	/**
	* Getter function for the tableOrder property.
	*/
    public function getTableOrder(){
		return $this->_tableOrder;
	}

 	/**
	* Setter function for the id property.
	*/
    public function setId($id){
		$this->_id = $id;
		return $this;
	}
	/**
	* Getter function for the id property.
	*/
    public function getId(){
		return $this->_id;
	}
}
 
